﻿package org.jecat.pusher {
	
	import flash.events.Event ;
	
	public class ConnEvent extends Event
	{
		public static const CONNECTED:int = 0x01 ;			// 建立连接
		public static const CLOSE:int = 0x02 ;				// 连接断开
		public static const ERROR:int = 0x08 ;				// 发生读写错误
		public static const SECURITY_ERROR:int = 0x10 ;		// 安全策略错误
		public static const DATA_RECEIVE:int = 0x04 ;		// 数据到达
		public static const PKG_RECEIVE:int = 0x20 ;		// 包完成
	
		// Initialization:
		public function ConnEvent(sEvent:String,data=null)
		{
			super(sEvent) ;
			m_data = data ;
		}
		
		public function GetData()
		{
			return m_data ;
		}
	
		private var m_data ;
	}
	
}